package com.blogspot.radialmind;

import java.util.Date;

public class DateTerm implements ITerm {
	private Date value;
	
	public DateTerm( Date date ) {
		super();
		this.value = date;
	}
	
	public String toString() {
		return value.toString();
	}
	
	public int toInteger() {
		throw new RuntimeException( "Expected integer term, is float: " + toString() );
	}
	
	public float toFloat() {
		throw new RuntimeException( "Expected float term, is int: " + toString() );
	}
	
	public Date getDate() {
		return value;
	}
}
